package shape;

import java.awt.Graphics;

import net.jcip.annotations.Immutable;

@Immutable
public class ShapeTextDecorator extends AbstractShapeDecorator {

	private final String text;
	
	public ShapeTextDecorator(final Shape decoratedShape, final String text) {
		super(decoratedShape);
		this.text = text;
	}
	
	@Override
	public void draw() {
		decoratedShape.draw();
		setText();
	}
	
	private void setText() {
		System.out.println("Shape has text: " + text);
	}

	@Override
	public void paintShape(Graphics g) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public int getX() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getY() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getSize() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void fillShape(Graphics g) {
		// TODO Auto-generated method stub
		
	}
}
